<?php session_start();?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Alrinic Group - NBA tournament</title>
    <meta name="keywords" content="NBA website" />
    <meta name="description" content="NBA website with ranking" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="css/jquery.ennui.contentslider.css" rel="stylesheet" type="text/css" media="screen,projection" />
  </head>
  <body>
    <div id="templatemo_header_wrapper">

      <div id="templatemo_header">
	

    	<div id="site_title">
          <h1><a href="" target="_parent">
              <img src="images/alrinic_logo.png" alt="Web Templates" />
              <span>NBA ranking</span>
          </a></h1>
        </div>
        
        
        <div id="search_box">
          <form action="#" method="get">
            <input type="text" value="" name="q" size="10" id="searchfield" title="searchfield" onfocus="clearText(this)" onblur="clearText(this)" />
            <input type="submit" name="Search" value="Search" alt="Search" id="searchbutton" title="Search" />
          </form>
        </div>
        
        <div class="cleaner"></div>
      </div><!-- end of header -->

      <div id="templatemo_menu">
        <ul>
          <li><a href="index.php">Home</a></li>
          <li><a href="tournament.php">Tournament</a></li>
          <li><a href="players.php"  class="current">Players</a></li>
          <li><a href="teams.php">Teams and clubs</a></li>
          <li><a href="contact.php">Contact Us</a></li>
        </ul>    	
      </div><!-- end of templatemo_menu -->

      <div id="templatemo_banner">
        
		<?php if(!isset($_SESSION['myusername'])) {
		?>
		
   	<h3>Search your Players</h3>

		<p> You can find here every basketball player regitered in our database. </br>
		Click on a name link (sorted lexically by some crazy SQL request)  to find more 
		information about the desired player such as : </br></br>
			- his actual (or last) club</br>
			- his category inside his club</br>
			- his entry date on the club</br>
			- (optional) his leaving date </br>
			- his total fault</br>
			- his total point</br>
			- his average score</br>
		</p>
		
		<?php 
		}
		else {
		?>
		
   	<h3>Search your Players : Administrator mode</h3>

		<p> As you are logged in as a web administrator, you can easily delete or modify a player by clicking on the 
		<strong>Delete Player</strong> or the <strong>Modify Player</strong> link just near the desired player name on the player list !
		You can also modify or delete a player by consulting his information page.
		</p>
		
		<?php } ?>
		
        <!-- <div class="button"><a href="#">Read more</a></div> bouton inutile ? -->
        
      </div>

    </div> <!-- end of header_wrapper -->

    <div id="templatemo_content_wrapper_outer">
      <div id="templatemo_content_wrapper_inner">
	<div id="templatemo_content_wrapper">

	  <div id="templatemo_content">
            
		<?php
		if(empty($_GET['nom']) || empty($_GET['prenom'])) { //Include liste alphabétique joueurs si pas d'infos URL
		include'include/players.php';	
		}
		
		else { //Include information joueur si infos URL de nom/prénom
		include'include/playerinfo.php';
		}
		
		?> 
          
          <div id="templatemo_sidebar">

            <div id="news_section">
              
           
              <div class="cleaner"></div>  
              
            </div>
            
            <div class="section_rss_twitter">
              
           
              
            </div>
            
            <div class="cleaner"></div>
          </div> <!-- end of sidebar -->

	  <div class="cleaner"></div>
	</div>
      </div>
    </div>
    
    <div id="templatemo_footer_wrapper">
      <div id="templatemo_footer">

	     <ul class="footer_menu">
            <li><a href="index.php">Home</a></li>
            <li><a href="tournament.php">Tournament</a></li>
            <li><a href="players.php">Players</a></li>
            <li><a href="teams.php">Clubs and Teams</a></li>
            <li class="last_menu"><a href="contact.php">Contact</a></li>
        </ul>
	
        Copyright © 2012 <a href="#">AlRiNic Project</a> | 
        Designed by AlRiNic members | 
        AlRiNic group &amp; ENSEIRB-MATMECA
	
      </div> <!-- end of footer -->

    </div> <!-- end of footer_wrapper -->

  </body>
</html>
